<?php

namespace app\v1\controller;

use app\v1\logic\MiniFeedbackLogic;
use think\response\Json;

class MiniFeedback extends BaseController
{
    public function save(): Json
    {
        [$res, $msgOrData] = (new MiniFeedbackLogic())->save($this->param, $this->userId);
        if (!$res) return errorReturn(4001, $msgOrData);
        return successReturn($msgOrData);
    }
}